#ifndef _CP_H
#define _CP_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/
struct cp
{
	unsigned wptr; /* dword index in ring buffer: accounted by CPU */
	unsigned rptr; /* dword index in ring buffer: accounted by GPU */
};

void cp_start(struct pci_dev *dev);
void cp_stop(struct pci_dev *dev);
void cp_init(struct pci_dev *dev);
#endif /* CP_H */
